﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Portal.Pdm.test
{
    class PortalEntity
    {
        PortalEntities _db = new PortalEntities();
        public void Get()
        {




        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            var db = new PortalEntities();
            db.AddToTbAction(new TbAction { CoActionId = Guid.NewGuid().ToString() });
            db.SaveChanges();
            var list = db.TbAction.Where(o => true);
            foreach (var tbAction in list)
            {
                Console.Write(tbAction.CoActionId);

            }
            Console.ReadKey();

        }
    }
}
